<?php
$api = array(
    'namespace' => 'Home',
    'middleware' => ['web','access']
);
Route::group($api, function () {
    //生成验证码�
    Route::get('captcha', function () {
        return generate_captcha();
    });

});